#include"TcpServer.hpp"
#include<memory>
#include"CommandExec.hpp"


int main()
{
    ENABLE_CONSOLE_LOG();
    Command com;

    std::unique_ptr<TcpServer> ts_ptr = std::make_unique<TcpServer>([&com](std::string cmdstr)
                                                                    {return com.Execute(cmdstr);});

    ts_ptr->InitServer();
    ts_ptr->Start();
    
    return 0;
}